﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AllRecipe : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["RecipeId"] != null)
            {
                Session["RecipeId"] = null;
            }
        }
    }
    protected void BtnGroceryList_Click(object sender, ImageClickEventArgs e)
    {
        Session["RecipeId"] = GroceryRecipe.Value;
        Response.Redirect("GroceryList.aspx");
    }

    protected void BtnMealPlanList_Click(object sender, ImageClickEventArgs e)
    {
        Session["RecipeOfMealPlan"] = MealPlanRecipe.Value;
        Response.Redirect("NewMealPlan.aspx");
    }
    
}